# -*- coding: utf-8 -*-

# 自定义频率控制
from rest_framework.throttling import SimpleRateThrottle
class MyThrottle(SimpleRateThrottle):
    scope = 'interface'
    def get_cache_key(self, request, view):
        return self.get_ident(request)
